﻿<Page 
    x:Class="Milkify.Views.WeekControl" 
    Title="Week"
    KeepAlive="True"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:m="clr-namespace:Milkify"
    xmlns:md="clr-namespace:Milkify.Data">
    <ScrollViewer
        VerticalScrollBarVisibility="Auto">
        <ItemsControl
            KeyboardNavigation.DirectionalNavigation="Cycle"
            Style="{DynamicResource WeekListStyle}">
            <Button
                Name="ButtonToday"
                Content="{Binding Today}"
                ContentTemplate="{DynamicResource TaskListItem}"
                Command="{Binding NavigateToTaskListCommand}"
                CommandParameter="{Binding Today}"
                Click="ButtonDay_Click">
            </Button>
            <Button 
                Content="{Binding Tomorrow}"
                ContentTemplate="{DynamicResource TaskListItem}"
                Command="{Binding NavigateToTaskListCommand}"
                CommandParameter="{Binding Tomorrow}"
                Click="ButtonDay_Click">
            </Button>
            <Button 
                Content="{Binding TwoDays}"
                ContentTemplate="{DynamicResource TaskListItem}"
                Command="{Binding NavigateToTaskListCommand}"
                CommandParameter="{Binding TwoDays}"
                Click="ButtonDay_Click">
            </Button>
            <Button 
                Content="{Binding ThreeDays}"
                ContentTemplate="{DynamicResource TaskListItem}"
                Command="{Binding NavigateToTaskListCommand}"
                CommandParameter="{Binding ThreeDays}"
                Click="ButtonDay_Click">
            </Button>
            <Button 
                Content="{Binding FourDays}"
                ContentTemplate="{DynamicResource TaskListItem}"
                Command="{Binding NavigateToTaskListCommand}"
                CommandParameter="{Binding FourDays}"
                Click="ButtonDay_Click">
            </Button>
            <Button 
                Content="{Binding FiveDays}"
                ContentTemplate="{DynamicResource TaskListItem}"
                Command="{Binding NavigateToTaskListCommand}"
                CommandParameter="{Binding FiveDays}"
                Click="ButtonDay_Click">
            </Button>
            <Button 
                Content="{Binding SixDays}"
                ContentTemplate="{DynamicResource TaskListItem}"
                Command="{Binding NavigateToTaskListCommand}"
                CommandParameter="{Binding SixDays}"
                Click="ButtonDay_Click">
            </Button>
        </ItemsControl>
    </ScrollViewer>
</Page>
